<template>
  <div class="">首页</div>
</template>

<script>
import { ref, reactive, toRefs,onMounted } from "vue";
import { getBanner } from '../../api/home/index'
export default {
  comments:{},
  setup() {
    // onMounted(()=>{
    //     console.log('fghj');
    // })
    getBanner({id:1}).then(res => {
        console.log(res);
    })
  },
};

// let fn = function (val) {
//   return val
// }
// console.log(fn(100));


// 箭头函数如果形参只有一个，（）可以省略不写 => 自带return 的意思
// let fn = val => val
// console.log(fn(100));
</script>
<style lang="scss" scoped>
</style>